import request from "@/utils/request";

/**
 * 分页查询表白墙
 * @param param
 * @returns {AxiosPromise}
 */
export function page(param) {
    return request({
        url: '/confessional-wall/page',
        method: 'get',
        params: param
    })
}

/**
 * 删除表白墙
 * @param uuid
 * @returns {AxiosPromise}
 */
export function deleted(uuid) {
    return request({
        url: '/confessional-wall/delete/' + uuid,
        method: 'delete'
    })
}

/**
 * 表白墙导出
 * @returns {AxiosPromise}
 * @param param
 */
export function exportConfessionalWall(param) {
    return request({
        url: '/confessional-wall/export',
        method: 'post',
        params: param,
        responseType: 'blob'
    })
}

/**
 * 表白墙详情
 * @returns {AxiosPromise}
 * @param uuid
 */
export function detail(uuid) {
    return request({
        url: '/confessional-wall/detail/' + uuid,
        method: 'get',
    })
}
